ReplaySubject class¶
Defined in
Namespace: System.Reactive.Subjects
Assembly: System.Reactive.dll
Full name: System.Reactive.Subjects.ReplaySubject<T>
Modifiers: public sealed
Summary¶
Represents an object that is both an observable sequence as well as an observer.
Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies.
Applies to
netstandard2.0
Class hierarchy
classDiagram
class ReplaySubject~T~
class SubjectBase~T~
SubjectBase~T~ <|-- ReplaySubject~T~
Inherits from: SubjectBase
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReplaySubject](# class. |
Properties¶
| Name | Summary |
|---|---|
| HasObservers | Indicates whether the subject has observers subscribed to it. |
| IsDisposed | Indicates whether the subject has been disposed. |
Methods¶
| Name | Summary |
|---|---|
| OnNext | Notifies all subscribed and future observers about the arrival of the specified element in the sequence. |
| OnError | Notifies all subscribed and future observers about the specified exception. |
| OnCompleted | Notifies all subscribed and future observers about the end of the sequence. |
| Subscribe | Subscribes an observer to the subject. |
| Dispose | Releases all resources used by the current instance of the [ReplaySubject](# class and unsubscribe all observers. |